<style scoped lang="scss">
  @import '@/assets/css/index';
  .fans2{
    @include page();
    .fans-data-box{
      background-color: white;
      .data-title{
        font-size: 1.6rem;
        font-weight: bold;
      }
      .fans-info{
        display: flex;
        align-items: center;
        margin-top: 1.2rem;
        .box-item{
          flex: 1;
          // margin-top: 1.8rem;
          .cap-title{
            color: $color-subtitle;
            font-size: 1.4rem;
          }
          .num{
            margin-top: 0.5rem;
            font-size: 1.5rem;
            font-weight: bold;
          }
        } 
      }
    }
    .activity-list{
      background-color: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 1rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid $border-c;
      .content{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
      }
    }
  }
  
</style>
<template>
  <div class="fans2 padding-all-l">
    <!-- <div class="title title-m">活动粉丝总览</div> -->
    <div class="activity-list padding-all-l border-r-l">
      <div class="content">
        <span class="title-m">{{item.title}}</span>
        <span class="time margT-l">创建时间 {{item.createTime}}</span>
      </div>
    </div>
    <div class="fans-data-box padding-all-l margT-l border-r-l">
      <div class="data-title">当前活动粉丝总览</div>
      <div class="fans-info">
        <div class="box-item">
          <div class="cap-title">访问次数</div>
          <div class="num color-red">{{item.browse_num}}</div>
        </div>
        <div class="box-item">
          <div class="cap-title">参与量</div>
          <div class="num color-green">{{item.join_num}}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// @ is an alias to /src
import { Icon } from 'vant'
export default {
  name: "ActivityFans",
  components: {
    [Icon.name]: Icon
  },
  data () {
    return {
      item:{}
    }
  },
  created() {
    this.item = this.$store.state.activityData
    console.log('item', this.item)
  },
  methods: {
    
  }
};
</script>
